package com.yamed.bus.service;

import com.yamed.bus.dal.entity.PromoteApkConfig;
import com.yamed.bus.web.vo.PromoteApkCountVO;

import java.util.List;


public interface PromoteApkService {

    /**
     * 添加推广链接配置
     * @param promoteApkConfig
     * @return
     */
    Integer addAppConfig(PromoteApkConfig promoteApkConfig);

    /**
     * 更新推广链接配置
     * @param promoteApkConfig
     * @return
     */
    Integer updateAppConfig(PromoteApkConfig promoteApkConfig);


    /**
     * 查询推广链接配置
     * @param promoteCode
     * @param ip
     * @return
     */
    PromoteApkConfig getPromoteAppConfig(String promoteCode, String ip);

    /**
     * 获取产品推广情况
     * @param promoteCode
     * @return
     */
    List<PromoteApkConfig> getList(String promoteCode);

    /**
     * 查询推广配置转化列表
     * @param promoteCode
     * @return
     */
    List<PromoteApkCountVO> getTransList(String promoteCode);


    /**
     * 更新下载次数
     * @param id
     * @param ip
     * @return
     */
    void updateDownloadCount(Long id, String ip);
}
